package simonxianyu.learn.springmybatis.db.dbsvc;

import org.springframework.stereotype.Service;
import simonxianyu.learn.springmybatis.db.mapper.DeviceMapper;
import simonxianyu.learn.springmybatis.db.po.Device;

import java.util.List;

/**
 */
@Service
public class DeviceDbSvc extends BaseDbSvc<DeviceMapper, Device,Long> {
  public List<Device> findAllPaged(
      String partnerId, int start, int size
  ) {
    return mapper.findAllPaged(partnerId, start, size);
  }
  public long countAll(String partnerNo) {
    return mapper.countAll(partnerNo);
  }
}
